package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 下载收藏分享点赞记录对象 a_operation_records
 * 
 * @author ruoyi
 * @date 2024-05-16
 */
public class AOperationRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 操作类型（1下载2收藏3分享4点赞） */
    @Excel(name = "操作类型", readConverterExp = "1=下载2收藏3分享4点赞")
    private Integer operType;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long userId;

    /** 数据分类，1首页数据。2素材库数据 */
    @Excel(name = "数据分类，1首页数据。2素材库数据")
    private String dataType;

    /** 所有数据ID */
    @Excel(name = "所有数据ID")
    private Long dataId;

    /** 逻辑删除 */
    private Long delFlag;

    /** 是否上线 */
    @Excel(name = "是否上线")
    private Boolean isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Integer numSoft;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOperType(Integer operType) 
    {
        this.operType = operType;
    }

    public Integer getOperType() 
    {
        return operType;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public Boolean getIsShow() {
        return isShow;
    }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }
    public void setNumSoft(Integer numSoft) 
    {
        this.numSoft = numSoft;
    }

    public Integer getNumSoft() 
    {
        return numSoft;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operType", getOperType())
            .append("userId", getUserId())
            .append("dataType", getDataType())
            .append("dataId", getDataId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("isShow", getIsShow())
            .append("numSoft", getNumSoft())
            .toString();
    }
}
